Skip to content

Conversation

@jonmeow
Copy link
Contributor

@jonmeow jonmeow commented Oct 17, 2025

A final impl can have a symbolic witness, but that witness is still final. Using "final" here per discussion on #generics-and-templates.

I'm also changing the variant a little because concrete_witness was only called when has_concrete_value was true, so it can be more careful about its contract. Having a more explicit None also simplifies has_value. I think it doesn't change the overall cost much past that.

@jonmeow jonmeow requested a review from danakj October 17, 2025 21:48
@jonmeow jonmeow requested a review from a team as a code owner October 17, 2025 21:48
@jonmeow jonmeow removed the request for review from a team October 17, 2025 23:17
Copy link
Contributor

@danakj danakj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@danakj danakj added this pull request to the merge queue Oct 20, 2025
Merged via the queue into carbon-language:trunk with commit b1f734e Oct 20, 2025
9 checks passed
@jonmeow jonmeow deleted the final branch October 27, 2025 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants